package org.dromara.crawler.domain;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import jakarta.persistence.Convert;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Data;
import org.dromara.crawler.config.JSONObjectConverter;


@Data
@Entity(name="yuyi")
@TableName("yuyi")
public class Semantic extends BasicEntity{


    @Id
    private Long id;

    @Convert(converter = JSONObjectConverter.class)
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private JSONObject content;

}
